import {get, post} from "@/net";

const getUserList = (page, size, success) =>
    get(`api/admin/user/list?page=${page}&size=${size}`, success)

const getUserDetail = (id, success) =>
    get(`api/admin/user/detail?id=${id}`, success)

const postSaveUser = (data, success) =>
    post('api/admin/user/save', data, success)

export {getUserList, getUserDetail, postSaveUser}